from fastapi import APIRouter

from app.api.routes import items, login, private, users, utils,client,test,device,task,web,project,dashboard,zentao
from app.core.config import settings

api_router = APIRouter()
api_router.include_router(login.router)
api_router.include_router(users.router)
api_router.include_router(utils.router)
api_router.include_router(items.router)
api_router.include_router(client.router)
api_router.include_router(device.router)
api_router.include_router(task.router)
api_router.include_router(web.router)
api_router.include_router(project.router)
api_router.include_router(test.router)
api_router.include_router(dashboard.router)
api_router.include_router(zentao.router)

if settings.ENVIRONMENT == "local":
    api_router.include_router(private.router)
